package com.adxon.data;

import javax.servlet.http.HttpServletRequest;

public class Picture extends Item{
	public final static int KN=12;

	public Picture(){
		super();
		kn=KN;
		atc=Figure.class;
	}
	@Override
	public void getAll(HttpServletRequest req){
		super.getAll(req);
		req.setAttribute("Article","<img src=/"+pk+".jpg>");
	}
	public void setMaxSize(String size){
		if(att==null)
			att=new Figure();
		((Figure)att).setMaxSize(size);
	}
	public void setRatio(String ratio){
		if(att==null)
			att=new Figure();
		((Figure)att).setRatio(ratio);
	}
}